from django.db import models
from django.contrib.auth import get_user_model

# Create your models here.

User = get_user_model()


class Book(models.Model):
    name = models.CharField(max_length=20,help_text='请输入书本的名字',verbose_name='图书名字')
    add_time = models.DateTimeField(auto_now=True,verbose_name='添加时间',help_text="书本添加的时间")
    # creator = models.ForeignKey(User, verbose_name='创建者', blank=True,null=True,on_delete=models.SET_NULL)
